package com.spring.boot.rmi.client;

import com.spring.boot.rmi.rmi_api.FirstInterface;

import java.rmi.Naming;

public class ClientMainClass {

    public static void main(String[] args) {
        FirstInterface first = null;
        try{
            first = (FirstInterface) Naming.lookup("rmi://127.0.0.1:9999/first");
            String str = first.first("大神");
            System.out.println(str);
        }catch (Exception e){
            e.printStackTrace();
        }
    }


}
